package model

import "time"

// Log 日志保存对象
type Log struct {
	Id        int       `json:"id"               db:"id"`
	Ip        string    `json:"ip" db:"ip"`
	Url       string    `json:"url" db:"url"`
	Context   string    `json:"context" db:"context"`
	Region    string    `json:"region" db:"region"`
	Referer   string    `json:"referer" db:"referer"`
	Platform  string    `json:"platform" db:"platform"`
	UserAgent string    `json:"userAgent" db:"user_agent"`
	Time      time.Time `json:"time" db:"time"`
}

func (Log) TableName() string {
	return "dam_red_log"
}

type LogVo struct {
	Log
}
